const http = require('../utils/http');

const HTTP = new http.HTTP();

// 获取所有订单
export function goodsAllOrderByIdStatus(params, callback) {
    console.log(params)
    HTTP.request('/goods/allOrderByIdStatus', 'GET', params, res => {
        callback(res)
    })
}

export function activityMyAllOrder(params, callback) {
    HTTP.request(
        '/activity/myAllOrder', "GET", params, callback
    )
}

export function goodsAll(params, callback) {
    HTTP.request(
        "/goods/allOrderByIdStatus",
        "GET",
        params,
        res => callback(res)
    );
}

export function myActivityAllOrder(params, callback) {
    HTTP.request(
        "/activity/myAllOrder",
        "GET",
        params,
        res => callback(res)
    );
}

export function CourseAllMyOrder(params, callback) {
    HTTP.request(
        "/course/allMyOrder" ,
        "GET",
        params,
        res => callback(res)
    );
}

